package com.cynteka.cyfoman.core;

import java.util.List;

/**
 * User: Sergey
 * Date: 02.08.11
 * Time: 23:20
 */
public class TaskGroup {
    private int period = 1000;
    private boolean isDaemon = true;
    private boolean initTask = false;

    /**
     * Init task should not be excuted in separate thread, it's just for initialization purposes.
     * @return
     */
    public boolean isInitTask() {
        return initTask;
    }

    public void setInitTask(boolean initTask) {
        this.initTask = initTask;
    }

    public boolean isDaemon() {
        return isDaemon;
    }

    public void setDaemon(boolean daemon) {
        isDaemon = daemon;
    }

    private List<Task> tasks;

    public int getPeriod() {
        return period;
    }

    public void setPeriod(int period) {
        this.period = period;
    }

    public List<Task> getTasks() {
        return tasks;
    }

    public void setTasks(List<Task> tasks) {
        this.tasks = tasks;
    }
}
